{include file=member.header.html}
{include file="title.html"}
{include file=member.submenu.html}


<div class="list1">
    <!--{foreach from=$refunds item=refund}-->
    <div class="box">
        <h2>{$lang.refund_number}：{$refund.refund_sn|escape}</h2>
        <div class="detail">
            <p>{$refund.order_sn|escape}<br /><a href="{url app=goods&id=$refund.goods_id}" target="_blank">{$refund.goods_name}</a></p>
            <p>{$lang.buyer}：{$refund.user_name|escape}</p>
            <p>{$lang.deal_amount}：{$refund.total_fee|price}</p>
            <p>{$lang.refund_amount}：{$refund.refund_fee|price}</p>
            <p>{$lang.apply_date}：{$refund.created|date:Y-m-d H:i:s}</p>
            <p>
                {$lang.refund_status}：
                {if $refund.status=='CLOSED'}
                {$lang.refund_colse}
                {elseif $refund.status=='SUCCESS'}
                {$lang.refund_succed}
                {elseif $refund.status=='FAILED'}
                {$lang.refund_fail}
                {elseif $refund.status=='WAIT_SELLER_AGREE'}
                {$lang.buyer_apply_refund}
                {elseif $refund.status=='SELLER_REFUSE_BUYER'}
                {$lang.seller_refused_refund}
                {elseif $refund.status=='WAIT_ADMIN_AGREE'}
                {$lang.seller_agree_refund}
                {elseif $refund.status=='WAIT_SELLER_CONFIRM'}
                {$lang.refund_apply_wait}
                {/if}	
                {if $refund.status!='CLOSED' && $refund.status!='SUCCESS' && $refund.status!='WAIT_ADMIN_AGREE' && $refund.ask_customer==1}（{$lang.customer_has_deal}）{/if}
            </p>
        </div>
        <div class="opr">
            <a href="{url app=refund&act=view&refund_id=$refund.refund_id}" class="white_btn" >{$lang.check}</a> 
        </div>
    </div>
    <!--{foreachelse}-->
    <div class="null">
        <p>{$lang.no_records}~</p>
    </div>
    <!--{/foreach}-->
</div>


{include file=member.page.bottom.html}

{include file=footer.html}